package com.gitee.melin.bee.core.jdbc.relational;

import java.io.Serializable;
import lombok.Data;

@Data
public class MetaProcedure implements Serializable {

    private String procDatabase;

    private String procSchema;

    private String procName;

    private String procType;

    private String comment;

    @Override
    public String toString() {
        if (procDatabase != null && procSchema != null) {
            return procDatabase + "." + procSchema + "." + procName;
        } else if (procSchema != null) {
            return procSchema + "." + procName;
        } else {
            return procName;
        }
    }
}
